diff options
author | Akim Demaille <akim@epita.fr> | 2001-03-05 18:47:49 +0000 |
---|---|---|
committer | Akim Demaille <akim@epita.fr> | 2001-03-05 18:47:49 +0000 |
commit | a939c6ff54fa1f8ad49ba351844ec8fb4d37708d (patch) | |
tree | a70cbbef6eb322879d06edf02f2bc12530a48cf6 /lib/am/java.am | |
parent | fb3e68bc8ee9a5b8129e778797424373a1d816a4 (diff) | |
download | automake-a939c6ff54fa1f8ad49ba351844ec8fb4d37708d.tar.gz |
* automake.in (&handle_programs, &handle_libraries, &handle_tags)
(&handle_ltlibraries, &handle_emacs_lisp, &handle_python): Adjust.
(&am_install_var): Forget about `-clean'.
Transform ?INSTALL?.
Always output the *.am file.
* data-clean.am, java-clean.am, libs-clean.am, lisp-clean.am,
* ltlib-clean.am, progs-clean.am, python-clean.am, tags-clean.am:
Remove, merged into the corresponding *.am file.
* data.am, libs.am, ltlib.am, progs.am, python.am: Equip with
?INSTALL?.
Diffstat (limited to 'lib/am/java.am')
-rw-r--r-- | lib/am/java.am | 52 |
1 files changed, 35 insertions, 17 deletions
diff --git a/lib/am/java.am b/lib/am/java.am index e7753b1df..d460a8520 100644 --- a/lib/am/java.am +++ b/lib/am/java.am @@ -16,23 +16,41 @@ ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA ## 02111-1307, USA. -?EXEC?.PHONY install-exec-am: install-%DIR%JAVA -?!EXEC?.PHONY install-data-am: install-%DIR%JAVA -install-%DIR%JAVA: class%DIR%.stamp - @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(%NDIR%dir) +## ------------ ## +## Installing. ## +## ------------ ## + +?INSTALL??EXEC?.PHONY install-exec-am: install-%DIR%JAVA +?INSTALL??!EXEC?.PHONY install-data-am: install-%DIR%JAVA +?INSTALL?install-%DIR%JAVA: class%DIR%.stamp +?INSTALL? @$(NORMAL_INSTALL) +?INSTALL? $(mkinstalldirs) $(DESTDIR)$(%NDIR%dir) ## A single .java file can be compiled into multiple .class files. So ## we just install all the .class files that got built into this ## directory. This is not optimal, but will have to do for now. - for p in *.class; do \ - echo " $(INSTALL_DATA) $$p $(DESTDIR)$(%NDIR%dir)/$$p"; \ - $(INSTALL_DATA) $$p $(DESTDIR)$(%NDIR%dir)/$$p; \ - done - -.PHONY uninstall-am: uninstall-%DIR%JAVA -uninstall-%DIR%JAVA: - @$(NORMAL_UNINSTALL) - @for p in *.class; do \ - echo " rm -f $(DESTDIR)$(%NDIR%dir)/$$p"; \ - rm -f $(DESTDIR)$(%NDIR%dir)/$$p; \ - done +?INSTALL? for p in *.class; do \ +?INSTALL? echo " $(INSTALL_DATA) $$p $(DESTDIR)$(%NDIR%dir)/$$p"; \ +?INSTALL? $(INSTALL_DATA) $$p $(DESTDIR)$(%NDIR%dir)/$$p; \ +?INSTALL? done + + +## -------------- ## +## Uninstalling. ## +## -------------- ## + +?INSTALL?.PHONY uninstall-am: uninstall-%DIR%JAVA +?INSTALL?uninstall-%DIR%JAVA: +?INSTALL? @$(NORMAL_UNINSTALL) +?INSTALL? @for p in *.class; do \ +?INSTALL? echo " rm -f $(DESTDIR)$(%NDIR%dir)/$$p"; \ +?INSTALL? rm -f $(DESTDIR)$(%NDIR%dir)/$$p; \ +?INSTALL? done + + +## ---------- ## +## Cleaning. ## +## ---------- ## + +.PHONY clean-am: clean-%DIR%JAVA: +clean-%DIR%JAVA: + -rm *.class class%DIR%.stamp |