1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 21:19:24 +00:00

Respect $(DESTDIR).

This commit is contained in:
Bruno Haible
2000-08-19 13:38:26 +00:00
parent 90c8a93ec7
commit e0e0f45bd1
3 changed files with 26 additions and 22 deletions

View File

@@ -121,14 +121,14 @@ version.o : version.cc $(VERSION_H)
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(srcdir)/version.cc
install : all force
if [ ! -d $(bindir) ] ; then mkdir $(bindir) ; fi
$(INSTALL_PROGRAM) $(TARGETPROG) $(bindir)/$(TARGETPROG)
if [ ! -d $(DESTDIR)$(bindir) ] ; then mkdir $(DESTDIR)$(bindir) ; fi
$(INSTALL_PROGRAM) $(TARGETPROG) $(DESTDIR)$(bindir)/$(TARGETPROG)
installdirs : force
if [ ! -d $(bindir) ] ; then mkdir $(bindir) ; fi
if [ ! -d $(DESTDIR)$(bindir) ] ; then mkdir $(DESTDIR)$(bindir) ; fi
uninstall : force
$(RM) $(bindir)/$(TARGETPROG)
$(RM) $(DESTDIR)$(bindir)/$(TARGETPROG)
check : all