<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Makefile on ads' corner</title><link>https://andreas.scherbaum.la/tags/makefile/</link><description>Recent content in Makefile on ads' corner</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 23 May 2024 13:11:27 +0200</lastBuildDate><atom:link href="https://andreas.scherbaum.la/tags/makefile/index.xml" rel="self" type="application/rss+xml"/><item><title>Client-side comments with Mastodon on a static Hugo website</title><link>https://andreas.scherbaum.la/post/2024-05-23_client-side-comments-with-mastodon-on-a-static-hugo-website/</link><pubDate>Thu, 23 May 2024 13:11:27 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2024-05-23_client-side-comments-with-mastodon-on-a-static-hugo-website/</guid><description>&lt;p&gt;Ever since I &lt;a href="https://andreas.scherbaum.la/post/2023-11-25_new-blog/"&gt;moved this blog&lt;/a&gt; to &lt;a href="https://gohugo.io/"&gt;Hugo&lt;/a&gt; from &lt;a href="https://s9y.org/"&gt;Serendipity&lt;/a&gt;, I missing the comment option a bit. This is something which a static blogging engine does not offer out of the box. And I did not migrate all the comments from my old blog to my new blog.&lt;/p&gt;&#10;&lt;p&gt;Inspired by a couple of postings which integrate &lt;em&gt;Mastodon&lt;/em&gt; as &amp;ldquo;comments&amp;rdquo; into static blogs, I set out to add this to my own blog.&lt;/p&gt;</description></item><item><title>Using Makefiles to build PostgreSQL</title><link>https://andreas.scherbaum.la/post/2018-11-03_using-makefiles-to-build-postgresql/</link><pubDate>Sat, 03 Nov 2018 22:00:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2018-11-03_using-makefiles-to-build-postgresql/</guid><description>&lt;p&gt;For a long time I was using a &lt;em&gt;Makefile&lt;/em&gt; to quickly build, start, stop and then wipe a predefined &lt;em&gt;PostgreSQL&lt;/em&gt; version. That comes handy if you just want to test something on an older version, without actually installing the software. Everything happens in a single directory, even a different port is assigned.&lt;/p&gt;</description></item><item><title>Single line input for psql copy command</title><link>https://andreas.scherbaum.la/post/2008-10-08_single-line-input-for-psql-copy-command/</link><pubDate>Wed, 08 Oct 2008 22:26:05 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2008-10-08_single-line-input-for-psql-copy-command/</guid><description>&lt;p&gt;I have the following problem:&lt;/p&gt;&#10;&lt;p&gt;A database server and another client machine. I have to execute several &lt;code&gt;\copy&lt;/code&gt; commands in &lt;code&gt;psql&lt;/code&gt; on the client machine to retrieve data and store the output in CSV files. The &lt;em&gt;PostgreSQL&lt;/em&gt; &lt;code&gt;COPY&lt;/code&gt; command is not an option because it stores the results on the database server, not the client machine. All &lt;code&gt;\copy&lt;/code&gt; commands are executed from several files containing &lt;em&gt;SQL&lt;/em&gt; commands, which are concated together by a &lt;code&gt;Makefile&lt;/code&gt; and feeded into &lt;code&gt;psql&lt;/code&gt;. So far so good.&lt;/p&gt;</description></item><item><title>role ... cannot be dropped because some objects depend on it</title><link>https://andreas.scherbaum.la/post/2008-09-10_role-...-cannot-be-dropped-because-some-objects-depend-on-it/</link><pubDate>Wed, 10 Sep 2008 20:11:07 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2008-09-10_role-...-cannot-be-dropped-because-some-objects-depend-on-it/</guid><description>&lt;p&gt;I want to &lt;a href="https://www.postgresql.org/docs/8.3/interactive/sql-droprole.html"&gt;drop a ROLE&lt;/a&gt; (previously &lt;code&gt;USER&lt;/code&gt;/&lt;code&gt;GROUP&lt;/code&gt;s) which is still referenced by object(s) in my database. But &lt;a href="https://www.postgresql.org/"&gt;PostgreSQL&lt;/a&gt; has objections:&lt;/p&gt;</description></item><item><title>create language if not exist</title><link>https://andreas.scherbaum.la/post/2008-03-27_create-language-if-not-exist/</link><pubDate>Thu, 27 Mar 2008 08:33:14 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2008-03-27_create-language-if-not-exist/</guid><description>&lt;p&gt;In a customer project I have to setup a database from a &lt;code&gt;Makefile&lt;/code&gt;. Part of my problem: on &lt;em&gt;Windows&lt;/em&gt; the installer may or may not install &lt;code&gt;plpgsql&lt;/code&gt; into &lt;code&gt;template1&lt;/code&gt;, therefore in consequence this language may or may not be activated in every new database. But that&amp;rsquo;s not predictable. This problem can appear on different &lt;em&gt;Linux&lt;/em&gt;/Unix distributions too.&lt;/p&gt;</description></item><item><title>Create a newspaper in TeX</title><link>https://andreas.scherbaum.la/post/2007-07-31_create-a-newspaper-in-tex/</link><pubDate>Tue, 31 Jul 2007 12:58:53 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2007-07-31_create-a-newspaper-in-tex/</guid><description>&lt;p&gt;My problem: for our wedding I need a small magazine with a foto on the front, the agenda, some notes for the music and some more additional information. The decision was to create A5 sheets and print them doublesided on an A4 paper, so you need at least 4 A5 sheets to fill one paper.&lt;/p&gt;</description></item><item><title>Remove quotes from variable text</title><link>https://andreas.scherbaum.la/post/2007-01-27_remove-quotes-from-variable-text/</link><pubDate>Sat, 27 Jan 2007 17:55:14 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2007-01-27_remove-quotes-from-variable-text/</guid><description>&lt;p&gt;Just got the problem that a variable I want to substitute in a &lt;code&gt;Makefile&lt;/code&gt; has quotes around the actual content. Thats bad, since this will break my script. I need to remove the quotes right before substituting the text:&lt;/p&gt;</description></item></channel></rss>