Skip to content

Commit

Permalink
Merge pull request #23 from yast/no_dep
Browse files Browse the repository at this point in the history
Makefile.am.common - do not create empty ".dep" YCP dependency file
  • Loading branch information
lslezak committed Aug 13, 2013
2 parents 436e73a + 37ed0a7 commit fbe9f6a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
3.0.2
3.0.3
4 changes: 3 additions & 1 deletion devtools/admin/Makefile.am.common
Expand Up @@ -15,6 +15,7 @@ ${ybcfiles}: %.ybc: %.ycp $(ycpchook)
CLEANFILES = ${ybcfiles}
DISTCLEANFILES = .dep

if HAS_YCP_MODULES
# Needs to be outside "." because of cases
# where ycpchook contains a symlink to "."
# Otherwise "." keeps being newer than .dep and we loop.
Expand All @@ -26,6 +27,8 @@ NEWDEP=${top_builddir}/.dep.new
${YCPMAKEDEP} --prefix=${prefix} ${YCPCFLAGS} > ${NEWDEP}
cat ${NEWDEP} > .dep
rm ${NEWDEP}
-include .dep
endif

dist-hook: check-syntax

Expand Down Expand Up @@ -58,4 +61,3 @@ check-syntax: $(client_DATA) $(module_DATA) $(ynclude_DATA) $(ydata_DATA) $(ycpc
fi; \
fi

-include .dep
13 changes: 13 additions & 0 deletions devtools/bin/y2autoconf
Expand Up @@ -390,6 +390,19 @@ fi
AC_CHECK_FILE($devtools_yast2dir/data/testsuite/Makefile.testsuite, [], [
AC_MSG_WARN([yast2-testsuite.rpm is not installed])
])
# handle .dep files in Makefile.am.common if any YCP module is present
AC_MSG_CHECKING([for YCP modules])
# YCP module file name starts with an upper case letter
[find . -type f | grep -q "[[:upper:]][^/]*\\.ycp$" && has_ycp_modules=1]
AM_CONDITIONAL([HAS_YCP_MODULES], [test -n "$has_ycp_modules"])
if test -n "$has_ycp_modules"; then
AC_MSG_RESULT([found])
else
AC_MSG_RESULT([not found])
fi
',

# generate output
Expand Down
7 changes: 7 additions & 0 deletions package/yast2-devtools.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Aug 9 08:53:18 UTC 2013 - lslezak@suse.cz

- Makefile.am.common - do not create empty ".dep" YCP dependency
file when there is no YCP module file
- 3.0.3

-------------------------------------------------------------------
Wed Aug 7 07:38:46 UTC 2013 - lslezak@suse.cz

Expand Down

0 comments on commit fbe9f6a

Please sign in to comment.