summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-25 13:34:55 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-09-25 13:34:55 -0700
commitf3748bbad0cab8742c2113da02c1a54789318e99 (patch)
treea87db6b9439b699c30e27559aa99bd6a891e1774 /Makefile.in
parent97e15755f94264002ba80097c59f543148983183 (diff)
downloadnasm-f3748bbad0cab8742c2113da02c1a54789318e99.tar.gz
nasm-f3748bbad0cab8742c2113da02c1a54789318e99.tar.bz2
nasm-f3748bbad0cab8742c2113da02c1a54789318e99.zip
Makefile.in: make "make install" create directories
Make "make install" create directories if they don't already exist.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in31
1 files changed, 19 insertions, 12 deletions
diff --git a/Makefile.in b/Makefile.in
index a7fa25b..d41d455 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -29,6 +29,11 @@ INSTALL_DATA = @INSTALL_DATA@
NROFF = @NROFF@
+MKDIR = mkdir
+RM = rm
+
+STRIP = strip
+
# Binary suffixes
O = @OBJEXT@
X = @EXEEXT@
@@ -140,34 +145,36 @@ PERLREQ = macros.c insnsa.c insnsd.c insnsi.h insnsn.c \
perlreq: $(PERLREQ)
install: nasm$(X) ndisasm$(X)
+ $(MKDIR) -p $(INSTALLROOT)$(bindir)
$(INSTALL_PROGRAM) nasm$(X) $(INSTALLROOT)$(bindir)/nasm$(X)
$(INSTALL_PROGRAM) ndisasm$(X) $(INSTALLROOT)$(bindir)/ndisasm$(X)
+ $(MKDIR) -p $(INSTALLROOT)$(mandir)/man1
$(INSTALL_DATA) $(srcdir)/nasm.1 $(INSTALLROOT)$(mandir)/man1/nasm.1
$(INSTALL_DATA) $(srcdir)/ndisasm.1 $(INSTALLROOT)$(mandir)/man1/ndisasm.1
clean:
- rm -f *.$(O) *.s *.i
- rm -f output/*.$(O) output/*.s output/*.i
- rm -f nasm$(X) ndisasm$(X)
+ $(RM) -f *.$(O) *.s *.i
+ $(RM) -f output/*.$(O) output/*.s output/*.i
+ $(RM) -f nasm$(X) ndisasm$(X)
cd rdoff && $(MAKE) clean
distclean: clean
- rm -f config.h config.log config.status
- rm -f Makefile *~ *.bak *.lst *.bin
- rm -f output/*~ output/*.bak
- rm -f test/*.lst test/*.bin test/*.$(O) test/*.bin
- rm -rf autom4te*.cache
+ $(RM) -f config.h config.log config.status
+ $(RM) -f Makefile *~ *.bak *.lst *.bin
+ $(RM) -f output/*~ output/*.bak
+ $(RM) -f test/*.lst test/*.bin test/*.$(O) test/*.bin
+ $(RM) -rf autom4te*.cache
cd rdoff && $(MAKE) distclean
cleaner: clean
- rm -f $(PERLREQ) *.man nasm.spec
+ $(RM) -f $(PERLREQ) *.man nasm.spec
cd doc && $(MAKE) clean
spotless: distclean cleaner
- rm -f doc/Makefile doc/*~ doc/*.bak
+ $(RM) -f doc/Makefile doc/*~ doc/*.bak
strip:
- strip --strip-unneeded nasm$(X) ndisasm$(X)
+ $(STRIP) --strip-unneeded nasm$(X) ndisasm$(X)
rdf:
cd rdoff && $(MAKE)
@@ -188,7 +195,7 @@ install_everything: everything install install_doc install_rdf
dist: spotless perlreq spec
autoheader
autoconf
- rm -rf ./autom4te*.cache
+ $(RM) -rf ./autom4te*.cache
tar: dist
tar -cvj --exclude CVS -C .. -f ../nasm-`cat version`-`date +%Y%m%d`.tar.bz2 `basename \`pwd\``