improve for make pack

This commit is contained in:
SANO Masatoshi 2021-05-12 21:56:12 +09:00
parent 2dd3c7d6a9
commit ee46642416
2 changed files with 7 additions and 18 deletions

View file

@ -129,7 +129,7 @@ pack:
cd src;make ros
rm -rf $(PACK)/lisp $(PACKPATH)/man $(PACKPATH)/patch
$(MKDIR_P) $(PACK)/bin
cp src/ros $(PACK)/bin
cp src/ros$(EXEEXT) $(PACK)/bin
$(MKDIR_P) $(PACK)/lisp
cp $(LISPS:%=lisp/%) $(PACK)/lisp
$(MKDIR_P) $(PACK)/patch
@ -137,13 +137,17 @@ pack:
$(MKDIR_P) $(PACK)/man
cp $(MDS:%.md=documents/man/%.1) $(PACK)/man
echo "prefix = /usr/local" > $(PACK)/Makefile
echo "all: bin/ros" >> $(PACK)/Makefile
echo "all: bin/ros$(EXEEXT)" >> $(PACK)/Makefile
echo "install:" >> $(PACK)/Makefile
echo " mkdir -p $$""(prefix)/bin" >> $(PACK)/Makefile
echo " mkdir -p $$""(prefix)/etc/roswell/patch" >> $(PACK)/Makefile
echo " install -c bin/ros $$""(prefix)/bin" >> $(PACK)/Makefile
echo " install -c bin/ros$(EXEEXT) $$""(prefix)/bin" >> $(PACK)/Makefile
echo " install -c -m 644 $(LISPS:%=lisp/%) $$""(prefix)/etc/roswell" >> $(PACK)/Makefile
echo " install -c -m 644 $(roslisppatch_DATA) $$""(prefix)/etc/roswell/patch" >> $(PACK)/Makefile
echo "" >> $(PACK)/Makefile
echo "uninstall:" >> $(PACK)/Makefile
echo " rm -rf $$""(prefix)/etc/roswell" >> $(PACK)/Makefile
echo " rm -f $$""(prefix)/bin/ros$(EXEEXT)" >> $(PACK)/Makefile
tar jcvf $(PACK).tar.bz2 $(PACK)
FORCE:

View file

@ -1,15 +0,0 @@
AC_PREREQ([2.59])
AC_INIT()
AM_CONFIG_HEADER(config.h)
AC_CONFIG_FILES([Makefile])
AC_CONFIG_SRCDIR([Makefile.am])
AM_INIT_AUTOMAKE([foreign])
AM_MAINTAINER_MODE([disable])
roslispdir='${prefix}/etc/roswell'
AC_SUBST(roslispdir)
roslisppatchdir='${roslispdir}/patch'
AC_SUBST(roslisppatchdir)
AC_OUTPUT