mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 15:00:02 +02:00

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorsPackage@48 08cae9ef-cb74-4d14-b03a-d7ea46f178d7
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
DESTDIR?=../docs
|
|
|
|
|
|
#manual-api manual-calwiz manual-client manual-gui manual-main
|
|
|
|
|
|
|
|
MAINDIRS= manual-main
|
|
#manual-calwiz manual-calwiz manual-gui manual-client manual-api
|
|
CLEANDIRS=$(MAINDIRS:manual-%=clean-%)
|
|
PDFDIRS=$(MAINDIRS:manual-%=pdf-%)
|
|
HTMLDIRS=$(MAINDIRS:manual-%=html-%)
|
|
ALLDIRS=$(MAINDIRS:manual-%=all-%)
|
|
|
|
|
|
all: $(ALLDIRS)
|
|
$(shell test -d $(DESTDIR)/pdf && rm -fr $(DESTDIR)/pdf)
|
|
mv pdf $(DESTDIR)
|
|
$(shell test -d $(DESTDIR)/html && rm -fr $(DESTDIR)/html)
|
|
mv html $(DESTDIR)
|
|
|
|
pdf: $(PDFDIRS)
|
|
$(shell test -d $(DESTDIR)/pdf && rm -fr $(DESTDIR)/pdf)
|
|
mv pdf $(DESTDIR)
|
|
|
|
html: $(HTMLDIRS)
|
|
$(shell test -d $(DESTDIR)/html && rm -fr $(DESTDIR)/html)
|
|
mv html $(DESTDIR)
|
|
|
|
clean: $(CLEANDIRS)
|
|
rm -fr $(DESTDIR)/pdf
|
|
rm -fr $(DESTDIR)/html
|
|
|
|
all-%:
|
|
echo
|
|
cd $(@:all-%=manual-%) && make all
|
|
|
|
pdf-%:
|
|
cd $(@:pdf-%=manual-%) && make pdf
|
|
|
|
html-%:
|
|
cd $(@:html-%=manual-%) && make html
|
|
|
|
clean-%:
|
|
cd $(@:clean-%=manual-%) && make clean
|
|
|
|
|
|
#¡Æ$(@D)¡Ç The directory part of the file name of the target, with the trailing slash removed. If the value of ¡Æ$@¡Ç is dir/foo.o then ¡Æ$(@D)¡Ç is dir. This value is . if ¡Æ$@¡Ç does not contain a slash.
|
|
#¡Æ$(@F)¡Ç The file-within-directory part of the file name of the target. If the value of ¡Æ$@¡Ç is dir/foo.o then ¡Æ$(@F)¡Ç is foo.o. ¡Æ$(@F)¡Ç is equivalent to ¡Æ$(notdir $@)¡Ç.
|
|
|
|
|