Skip to content

Commit

Permalink
Improvements in creation of distribution.
Browse files Browse the repository at this point in the history
  • Loading branch information
Darren Hiebert committed Nov 2, 2001
1 parent a339fc2 commit d27f05f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Makefile.in
Expand Up @@ -194,15 +194,15 @@ TAGS: $(CTAGS_EXEC)
./$(CTAGS_EXEC) -e $(srcdir)/*

clean:
@ rm -f $(OBJECTS) $(CTAGS_EXEC) tags TAGS
rm -f $(OBJECTS) $(READ_LIB) $(CTAGS_EXEC) tags TAGS

mostlyclean: clean

distclean: clean
@ rm -f $(CONFIG_GEN)
rm -f $(CONFIG_GEN)

maintainerclean: distclean
@ rm -f $(AUTO_GEN)
rm -f $(AUTO_GEN)

#
# implicit rules
Expand Down
9 changes: 6 additions & 3 deletions maintainer.mak
Expand Up @@ -268,6 +268,7 @@ ctags-%.tar.gz: $(UNIX_FILES) $(VERSION_FILES)
chmod 755 ctags-$*/mkinstalldirs
(cd ctags-$*; autoheader; chmod 644 config.h.in)
(cd ctags-$*; autoconf; chmod 755 configure)
(cd ctags-$*; man2html ctags.1 > ctags.html)
tar -zcf $@ ctags-$*

ctags-%.tar.Z: ctags-%.tar.gz
Expand All @@ -287,13 +288,14 @@ dos1-%: $(DOS_FILES)
sed -e 's/^\(VERSION = \).*$$/\1$*
/' makefile.bak > makefile

dos2-%: $(DOS_VER_FILES) ctags.html
dos2-%: $(DOS_VER_FILES)
for file in $^ ;do \
rm -f $(CTAGS_DOSDIR)/ctags`echo $*|sed 's/\.//g'`/$${file} ;\
sed -e "s/@@VERSION@@/$*/" \
-e "s/@@LSMDATE@@/`date +'%d%b%y' | tr 'a-z' 'A-Z'`/" $${file} |\
unix2dos > $(CTAGS_DOSDIR)/ctags`echo $*|sed 's/\.//g'`/$${file} ;\
done
done ;\
cd $(CTAGS_DOSDIR)/ctags`echo $*|sed 's/\.//g'` ; man2html ctags.1 > ctags.html

dos-%:
@ echo "---------- Building MSDOS release directory"
Expand Down Expand Up @@ -327,11 +329,12 @@ cleanrelease-%:
rm -f $(RPM_ROOT)/SRPMS/ctags-$*-1.src.rpm
rm -f $(RPM_ROOT)/SPECS/ctags-$*.spec

release-%: cvs-tag-% ctags-%.tar.gz ctags-%.tar.Z dos-% rpm-% ctags.html
release-%: cvs-tag-% ctags-%.tar.gz ctags-%.tar.Z dos-% rpm-%
@ echo "---------- Copying files to web archive"
cp -p ctags-$*.tar.* $(WEB_ARCHIVE_DIR)
cp -p EXTENDING.html $(WEB_CTAGS_DIR)
mv -f ctags.html $(WEB_CTAGS_DIR)
cp -p ctags-$*/ctags.html $(WEB_CTAGS_DIR)/ctags.html
cp -p $(RPM_ROOT)/RPMS/i386/ctags-$*-1.i386.rpm $(WEB_ARCHIVE_DIR)
cp -p $(RPM_ROOT)/SRPMS/ctags-$*-1.src.rpm $(WEB_ARCHIVE_DIR)
cp -p ctags-$*/ctags.lsm $(WEB_ARCHIVE_DIR)/ctags-$*.lsm
Expand Down

0 comments on commit d27f05f

Please sign in to comment.