diff options
author | konablend <[email protected]> | 2009-03-03 18:34:20 +0000 |
---|---|---|
committer | konablend <[email protected]> | 2009-03-03 18:34:20 +0000 |
commit | 3e9713bf92d9482b6303656407d24697446b1c8e (patch) | |
tree | 7a6fc5ce477bac25451d4c252f3d588326820545 | |
parent | df20c24f9308bea08a200bc59269a724737b92da (diff) |
BuildSystem:
- added global uninstall target; the inverse of install
- $PREFIX/bin/HandBrakeCLI longer paritipates in clean
- added target test.uninstall to remove $PREFIX/bin/HandBrakeCLI
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2212 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | doc/texi/building/chapter.via.terminal.texi | 8 | ||||
-rw-r--r-- | make/include/main.rules | 5 | ||||
-rw-r--r-- | test/module.defs | 2 | ||||
-rw-r--r-- | test/module.rules | 10 |
4 files changed, 17 insertions, 8 deletions
diff --git a/doc/texi/building/chapter.via.terminal.texi b/doc/texi/building/chapter.via.terminal.texi index 88cb3b483..4f299f179 100644 --- a/doc/texi/building/chapter.via.terminal.texi +++ b/doc/texi/building/chapter.via.terminal.texi @@ -92,12 +92,16 @@ Alias for @samp{make build}. @item make build Build main product. All necessary dependencies are also built if required. +@item make clean +Clean all build output excluding contrib modules. Configuration is retained. + @item make install Perform final product(s) install. This will install build products to a standard directory or one specified via @command{configure --prefix} option. -@item make clean -Clean all build output excluding contrib modules. Configuration is retained. +@item make uninstall +Perform final product(s) uninstall. +This will uninstall any products which may have been previously installed. @item make xclean Clean all build output including contrib modules. Configuration is retained. diff --git a/make/include/main.rules b/make/include/main.rules index e7511a263..4625ae9db 100644 --- a/make/include/main.rules +++ b/make/include/main.rules @@ -15,11 +15,12 @@ endif ############################################################################### -.PHONY: build install clean xclean doc report +.PHONY: build clean install uninstall xclean doc report build: -install: clean: +install: +uninstall: xclean: contrib.xclean clean doc: report:: report.main report.modules diff --git a/test/module.defs b/test/module.defs index a0ab7d000..af42f13c7 100644 --- a/test/module.defs +++ b/test/module.defs @@ -28,9 +28,9 @@ endif TEST.out += $(TEST.c.o) TEST.out += $(TEST.exe) -TEST.out += $(TEST.install.exe) BUILD.out += $(TEST.out) +BUILD.out += $(TEST.install.exe) ############################################################################### diff --git a/test/module.rules b/test/module.rules index 2a18db9b4..9a47aa172 100644 --- a/test/module.rules +++ b/test/module.rules @@ -21,12 +21,16 @@ clean: test.clean ############################################################################### -## avoid installing CLI on darwin +## skip install/uninstall on darwin ifneq ($(BUILD.system),darwin) -install: test.install - test.install: | $(dir $(TEST.install.exe)) $(CP.exe) $(TEST.exe) $(TEST.install.exe) +test.uninstall: + $(RM.exe) -f $(TEST.install.exe) + +install: test.install +uninstall: test.uninstall + endif |