Git

0403744c69b38558e6990d66fcac5fe6ade39a6e
1 VER = 0.31
2 PRE = /usr/local
3 BIN = $(PRE)/bin
4 DOC = $(PRE)/share/doc/fapg
5 MAN = $(PRE)/share/man/man1
7 fapg:fapg.c genres.h
8         gcc -Wall -o fapg fapg.c
10 clean:
11         rm -f fapg
12         rm -f build-stamp configure-stamp debian/fapg.substvars debian/files
13         rm -rf debian/fapg rpm/BUILD rpm/SPECS rpm/SOURCES rpm/SRPMS rpm/RPMS
15 install:fapg
16         mkdir -p $(BIN) $(DOC) $(MAN)
17         cp -f fapg $(BIN)
18         cp -f COPYING README $(DOC)
19         cp -f fapg.1 $(MAN)
21 uninstall:
22         rm -f $(BIN)/fapg
23         rm -rf $(DOC)
24         rm -f $(MAN)/fapg.1
26 tar: clean
27         cd .. && tar zcvf fapg-$(VER).tar.gz fapg-$(VER)
29 rpm: tar
30         mkdir -p rpm/BUILD rpm/SPECS rpm/SOURCES rpm/SRPMS rpm/RPMS
31         rpm -ta ../fapg-$(VER).tar.gz --define "_topdir `pwd`/rpm"
32         cp rpm/*/*.rpm rpm/*/*/*.rpm ..
34 deb: clean
35         dpkg-buildpackage -us -uc -rfakeroot
37 dist: tar rpm deb