/[gplan]/Makefile
ViewVC logotype

Contents of /Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11 - (show annotations)
Wed Oct 7 19:24:06 2009 UTC (10 years, 1 month ago) by ben
File size: 1113 byte(s)
comments
1 PRGNAME=gplan
2 PRGTITLE=Gplan
3 VERSION=0.4.1
4 PREFIX=/usr/local
5 all:
6 sed -e "s#ICONPATH#$(PREFIX)/share/icons/$(PRGNAME).png#" $(PRGNAME).in > $(PRGNAME)
7
8 install: preinstall
9 mkdir -p $(DESTDIR)$(PREFIX)/bin
10 mkdir -p $(DESTDIR)$(PREFIX)/share/applications
11 mkdir -p $(DESTDIR)$(PREFIX)/share/icons
12
13 install $(PRGNAME) $(DESTDIR)$(PREFIX)/bin/
14 install $(PRGNAME).desktop $(DESTDIR)$(PREFIX)/share/applications/
15 cp $(PRGNAME).png $(DESTDIR)$(PREFIX)/share/icons/
16
17 preinstall:
18 sed -e "s#__PREFIX__#$(PREFIX)#" -e "s#__PRGTITLE__#$(PRGTITLE)#" -e "s#__PRGNAME__#$(PRGNAME)#" $(PRGNAME).desktop.in > $(PRGNAME).desktop
19 chmod +x $(PRGNAME)
20
21 uninstall:
22 $(RM) $(DESTDIR)$(PREFIX)/bin/$(PRGNAME)
23 $(RM) $(DESTDIR)$(PREFIX)/share/icons/$(PRGNAME).png
24 $(RM) $(DESTDIR)$(PREFIX)/share/applications/$(PRGNAME).desktop
25
26 dist: clean
27 cd ..; cp -a $(PRGNAME) $(PRGNAME)-$(VERSION); $(RM) -r $(PRGNAME)-$(VERSION)/.git; find $(PRGNAME)-$(VERSION)/ -name ".svn" | xargs $(RM) -r ; tar zcvf $(PRGNAME)-$(VERSION).tar.gz $(PRGNAME)-$(VERSION); $(RM) -r $(PRGNAME)-$(VERSION); cd -
28
29 clean:
30 $(RM) $(PRGNAME) $(PRGNAME).desktop

  ViewVC Help
Powered by ViewVC 1.1.26