/[gplan]/Makefile
ViewVC logotype

Annotation of /Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11 - (hide annotations)
Wed Oct 7 19:24:06 2009 UTC (11 years, 5 months ago) by ben
File size: 1113 byte(s)
comments
1 ben 1 PRGNAME=gplan
2     PRGTITLE=Gplan
3 ben 11 VERSION=0.4.1
4 ben 1 PREFIX=/usr/local
5     all:
6 ben 4 sed -e "s#ICONPATH#$(PREFIX)/share/icons/$(PRGNAME).png#" $(PRGNAME).in > $(PRGNAME)
7 ben 1
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 ben 4 chmod +x $(PRGNAME)
20 ben 1
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 ben 4 $(RM) $(PRGNAME) $(PRGNAME).desktop

  ViewVC Help
Powered by ViewVC 1.1.26