tyto-litterateur/Makefile

44 lines
1.3 KiB
Makefile
Raw Permalink Normal View History

2023-04-10 19:45:54 +02:00
#!/bin/bash
#
# Copyright (C) 2023-2024 Adrien Bourmault <neox@a-lec.org>
#
# This file is part of tyto-litterateur.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
default: tyto.deb
2023-04-10 19:45:54 +02:00
### MAKE DEB
.INTERMEDIATE: debian/debian-binary debian/control.tar.gz debian/data.tar.gz
.PHONY: clean
tyto.deb: debian/debian-binary debian/control.tar.gz debian/data.tar.gz
cd debian && ar -r ../tyto.deb debian-binary control.tar.gz data.tar.gz
2023-04-10 19:45:54 +02:00
debian/data.tar.gz:
cd src && tar czvf ../debian/data.tar.gz usr var
debian/control.tar.gz:
cd debian && tar czvf control.tar.gz control #preinst postinst prerm postrm
2023-04-10 19:45:54 +02:00
debian/debian-binary:
echo 2.0 > debian/debian-binary
clean:
-rm debian/*.tar.gz
-rm debian/debian-binary
-rm *.deb