correct Makefile

git-svn-id: http://tint2.googlecode.com/svn/trunk@16 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr 2008-10-30 17:45:06 +00:00
parent 23dcc3b439
commit 2d3e6f03d7

View file

@ -7,16 +7,16 @@ ifndef DESTDIR
ifndef PREFIX ifndef PREFIX
BINDIR=/usr/bin BINDIR=/usr/bin
XDG_CONFIG_DIR=/etc/xdg XDG_CONFIG_DIR=/etc/xdg
MAN_DIR=/usr/share/man MANDIR=/usr/share/man
else else
BINDIR=$(PREFIX)/bin BINDIR=$(PREFIX)/bin
XDG_CONFIG_DIR=/etc/xdg XDG_CONFIG_DIR=/etc/xdg
MAN_DIR=/usr/share/man MANDIR=/usr/share/man
endif endif
else else
BINDIR=$(DESTDIR)/usr/bin BINDIR=$(DESTDIR)/usr/bin
XDG_CONFIG_DIR=$(DESTDIR)/etc/xdg XDG_CONFIG_DIR=$(DESTDIR)/etc/xdg
MAN_DIR=$(DESTDIR)/usr/share/man MANDIR=$(DESTDIR)/usr/share/man
endif endif
@ -31,11 +31,11 @@ install:
mkdir -p $(MANDIR)/man1 mkdir -p $(MANDIR)/man1
install $(PROGNAME) $(BINDIR) install $(PROGNAME) $(BINDIR)
cp -f ../tintrc06 $(XDG_CONFIG_DIR)/tint2/tint2rc cp -f ../tintrc06 $(XDG_CONFIG_DIR)/tint2/tint2rc
cp -f ../doc/man/tint2.1 $(MAN_DIR)/man1 cp -f ../doc/man/tint2.1 $(MANDIR)/man1
uninstall: uninstall:
rm -f $(BINDIR)/$(PROGNAME) rm -f $(BINDIR)/$(PROGNAME)
rm -f $(MAN_DIR)/man1/tint2.1 rm -f $(MANDIR)/man1/tint2.1
clean: clean:
rm -f $(PROGNAME) rm -f $(PROGNAME)