summaryrefslogtreecommitdiffstats
path: root/kapptemplate
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-11-08 02:58:39 +0100
committerSlávek Banko <slavek.banko@axis.cz>2012-11-08 03:02:38 +0100
commit3dd9fca200d121517a7ba25ad8ba9a0a98b320a7 (patch)
treede56b56db52be534aa06263530ed495349cace86 /kapptemplate
parent59a2f3d91922f06ca842abb8680fade79994d4ec (diff)
downloadtdesdk-3dd9fca200d121517a7ba25ad8ba9a0a98b320a7.tar.gz
tdesdk-3dd9fca200d121517a7ba25ad8ba9a0a98b320a7.zip
Fix various cmake build issues
Fix automake build issue in kapptemplate
Diffstat (limited to 'kapptemplate')
-rw-r--r--kapptemplate/CMakeLists.txt4
-rw-r--r--kapptemplate/admin/CMakeLists.txt7
-rw-r--r--kapptemplate/admin/Makefile.am4
3 files changed, 12 insertions, 3 deletions
diff --git a/kapptemplate/CMakeLists.txt b/kapptemplate/CMakeLists.txt
index 399917a9..1be17f9c 100644
--- a/kapptemplate/CMakeLists.txt
+++ b/kapptemplate/CMakeLists.txt
@@ -23,6 +23,10 @@ configure_file( kapptemplate.cmake kapptemplate @ONLY )
install( PROGRAMS
${CMAKE_CURRENT_BINARY_DIR}/kapptemplate
+ DESTINATION ${BIN_INSTALL_DIR} )
+
+install( PROGRAMS
+ ${CMAKE_CURRENT_SOURCE_DIR}/mkinstalldirs
DESTINATION ${DATA_INSTALL_DIR}/kapptemplate/bin )
install( FILES
diff --git a/kapptemplate/admin/CMakeLists.txt b/kapptemplate/admin/CMakeLists.txt
index 8b0806d2..56076c9f 100644
--- a/kapptemplate/admin/CMakeLists.txt
+++ b/kapptemplate/admin/CMakeLists.txt
@@ -9,4 +9,9 @@
#
#################################################
-tde_install_empty_directory( ${DATA_INSTALL_DIR}/kapptemplate/admin )
+install(
+ DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../admin/
+ DESTINATION ${DATA_INSTALL_DIR}/kapptemplate/admin
+ USE_SOURCE_PERMISSIONS
+ REGEX "Makefile(|\\.in|\\.am)$|.*-orig$" EXCLUDE
+)
diff --git a/kapptemplate/admin/Makefile.am b/kapptemplate/admin/Makefile.am
index fef6965c..16847934 100644
--- a/kapptemplate/admin/Makefile.am
+++ b/kapptemplate/admin/Makefile.am
@@ -1,8 +1,8 @@
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/kapptemplate/admin
for file in $(srcdir)/*; do \
- if [ -f $$file -a $$file != 'Makefile' -a $$file != 'Makefile.in' -a $$file != 'Makefile.am' ]; then \
- destfile=`basename $$file` \
+ destfile=`basename $$file`; \
+ if [ -f $$file -a $$destfile != 'Makefile' -a $$destfile != 'Makefile.in' -a $$destfile != 'Makefile.am' ]; then \
$(INSTALL_DATA) $$file \
$(DESTDIR)$(kde_datadir)/kapptemplate/admin/$$destfile; \
fi \