EXTRA_DIRS3=
endif
-SUBDIRS=$(EXTRA_DIRS1) $(EXTRA_DIRS2) man doc libctsupport libctsim html cgi-bin include $(EXTRA_DIRS3) tools helical
+SUBDIRS=man doc libctsupport libctsim html cgi-bin include $(EXTRA_DIRS1) $(EXTRA_DIRS2 $(EXTRA_DIRS3) tools helical
EXTRA_DIST=acsite.m4 make.bat msvc/ctsim.dsw msvc/ctsimtext/ctsimtext.dsp msvc/libctsim/libctsim.dsp msvc/ctsim/ctsim.dsp
usr
usr/bin
usr/share
+usr/share/ctsim
usr/share/doc
usr/share/doc/ctsim
usr/share/doc/ctsim/html
prefix := debian/$(pkg)
DESTDIR := `pwd`/$(prefix)
SHAREDOCDIR := $(DESTDIR)/usr/share/doc/$(pkg)
-SHAREDATADIR := $(DESTDIR)/usr/share/$(pkg)
+SHAREDATADIR := $(DESTDIR)/usr/share/$(pkg)/.
INSTALL := install
INSTALLFLAGS := -g root -o root -m 0644
# Add here commands to install the package into debian/ctsim.
${MAKE} install
$(INSTALL) $(INSTALLFLAGS) $(shell echo doc/html/*) $(SHAREDOCDIR)/html
+ ln -sf $(pkg)_contents.html $(SHAREDOCDIR)/html/index.html
# Build architecture-independent files here.
binary-indep: build install
all-local: htmlhelp html dvi
install-data-hook: $(pkg).htb
- cp $(pkg).htb $(datadir)
+ install -g root -o root -m 0644 $(pkg).htb $(datadir)
.PHONY: ps
ps: ctsim.ps
tex2rtf $(pkg).tex $(pkg).html -html > /dev/null
rm -rf html
mkdir html
- ln -s $(pkg)_contents.html html/index.html
+ cp *.gif html
+ mv *.html html
# Remove junk from distribution dir
pushd ${DISTDIR}
-make distclean
+make clean
popd
rm -f `find ${DISTDIR} -type f -name .cvsignore`
rm -rf `find ${DISTDIR} -type d -name CVS`